<?php
class person{
    public $name='超人';
    function asd(){
        echo $this->name;
    }
}
$h=new person;
echo $h->asd();